import java.util.Scanner;

public class test7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a point with two coordinates: ");
        double x = input.nextDouble();
        double y = input.nextDouble();
        boolean inHorizontal = Math.abs(x) <= 10.0 / 2;
        boolean inVertical = Math.abs(y) <= 5.0 / 2;
        if (inHorizontal && inVertical) {
            System.out.printf("Point (%.1f, %.1f) is in the rectangle%n", x, y);
        } else {
            System.out.printf("Point (%.1f, %.1f) is not in the rectangle%n", x, y);
        }
        input.close();
    }
}
